/**
 * 主导航
 */
// ***************	网站上部/导航栏等公共部分 begin	***************	//
	// 导航栏 ----------begin
	// 第一部分	导航栏的下拉选项卡  新闻中心/政务公开/办事服务/重点专题/互动交流/应用系统
	//各个选项名称对应的内容数量
	_EsdDynamicTransformationScript.num1 = $("#header_menu_details_mask .header_detail_container:eq(1) a").length-1;
	_EsdDynamicTransformationScript.num2 = $("#header_menu_details_mask .header_detail_container:eq(2) a").length-1;
	_EsdDynamicTransformationScript.num3 = $("#header_menu_details_mask .header_detail_container:eq(3) a").length-1;
	_EsdDynamicTransformationScript.num4 = $("#header_menu_details_mask .header_detail_container:eq(4) a").length-1;
	_EsdDynamicTransformationScript.num5 = $("#header_menu_details_mask .header_detail_container:eq(5) a").length-1;
	_EsdDynamicTransformationScript.num6 = $("#header_menu_details_mask .header_detail_container:eq(6) a").length-1;

	//各个选项名称
	_EsdDynamicTransformationScript.esd1TagNum1 = $("#header_menu_list .header_menu_list:eq(0) a");
	_EsdDynamicTransformationScript.esd1TagNum2 = $("#header_menu_list .header_menu_list:eq(1) a");
	_EsdDynamicTransformationScript.esd1TagNum3 = $("#header_menu_list .header_menu_list:eq(2) a");
	_EsdDynamicTransformationScript.esd1TagNum4 = $("#header_menu_list .header_menu_list:eq(3) a");
	_EsdDynamicTransformationScript.esd1TagNum5 = $("#header_menu_list .header_menu_list:eq(4) a");
	_EsdDynamicTransformationScript.esd1TagNum6 = $("#header_menu_list .header_menu_list:eq(5) a");

	//各个选项中的第一个内容
	_EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#header_menu_details_mask .header_detail_container:eq(1) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#header_menu_details_mask .header_detail_container:eq(2) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum3Content1 = $("#header_menu_details_mask .header_detail_container:eq(3) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum4Content1 = $("#header_menu_details_mask .header_detail_container:eq(4) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum5Content1 = $("#header_menu_details_mask .header_detail_container:eq(5) a:eq(0)");
	_EsdDynamicTransformationScript.esd1TagNum6Content1 = $("#header_menu_details_mask .header_detail_container:eq(6) a:eq(0)");

	//各个选项中的最后一个内容
	_EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#header_menu_details_mask .header_detail_container:eq(1) a:eq("+_EsdDynamicTransformationScript.num1+")");
	_EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#header_menu_details_mask .header_detail_container:eq(2) a:eq("+_EsdDynamicTransformationScript.num2+")");
	_EsdDynamicTransformationScript.esd1TagNum3ContentN = $("#header_menu_details_mask .header_detail_container:eq(3) a:eq("+_EsdDynamicTransformationScript.num3+")");
	_EsdDynamicTransformationScript.esd1TagNum4ContentN = $("#header_menu_details_mask .header_detail_container:eq(4) a:eq("+_EsdDynamicTransformationScript.num4+")");
	_EsdDynamicTransformationScript.esd1TagNum5ContentN = $("#header_menu_details_mask .header_detail_container:eq(5) a:eq("+_EsdDynamicTransformationScript.num5+")");
	_EsdDynamicTransformationScript.esd1TagNum6ContentN = $("#header_menu_details_mask .header_detail_container:eq(6) a:eq("+_EsdDynamicTransformationScript.num6+")");

	// 第一部分 第1个tab
	_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseout();
			}else if (e.keyCode == 9) {
				console.log("1");
				_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
		$(document).unbind("keydown.keydown_1_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
		$(document).bind("keydown.keydown_1_1_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_1_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_1_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_1_n");
	});
	// 第一部分 第2个tab
	_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
		console.log(2);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
		$(document).unbind("keydown.keydown_1_2");
	});

	_EsdDynamicTransformationScript.esd1TagNum2Content1.focus(function () {
		$(document).bind("keydown.keydown_1_2_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum2Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_2_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_2_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3.focus();
				console.log(2-3);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum2ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_2_n");
	});

	// 第一部分 第3个tab
	_EsdDynamicTransformationScript.esd1TagNum3.focus(function (e) {
		console.log(3);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum3.blur(function () {
		$(document).unbind("keydown.keydown_1_3");
	});

	_EsdDynamicTransformationScript.esd1TagNum3Content1.focus(function () {
		$(document).bind("keydown.keydown_1_3_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum3.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum3Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_3_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_3_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum3ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_3_n");
	});

	// 第一部分 第4个tab
	_EsdDynamicTransformationScript.esd1TagNum4.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum4Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum4.blur(function () {
		$(document).unbind("keydown.keydown_1_4");
	});

	_EsdDynamicTransformationScript.esd1TagNum4Content1.focus(function () {
		$(document).bind("keydown.keydown_1_4_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum4.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum4Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_4_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_4_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum5.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum4ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_4_n");
	});

	// 第一部分 第5个tab
	_EsdDynamicTransformationScript.esd1TagNum5.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum4.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum4ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum5Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum5.blur(function () {
		$(document).unbind("keydown.keydown_1_5");
	});

	_EsdDynamicTransformationScript.esd1TagNum5Content1.focus(function () {
		$(document).bind("keydown.keydown_1_5_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum5.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum5Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_5_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_5_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum6.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum5ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_5_n");
	});

	// 第一部分 第6个tab
	_EsdDynamicTransformationScript.esd1TagNum6.focus(function (e) {
		e = $(this).mouseover();
		$(document).bind("keydown.keydown_1_6", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum5.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum5ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum6Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum6.blur(function () {
		$(document).unbind("keydown.keydown_1_6");
	});

	_EsdDynamicTransformationScript.esd1TagNum6Content1.focus(function () {
		$(document).bind("keydown.keydown_1_6_1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum6.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd1TagNum6Content1.blur(function () {
		$(document).unbind("keydown.keydown_1_6_1");
	});
	
	_EsdDynamicTransformationScript.esd1TagNum6ContentN.focus(function () {
		$(document).bind("keydown.keydown_1_6_n", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum6.mouseout();
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum6ContentN.blur(function () {
		$(document).unbind("keydown.keydown_1_6_n");
	});
	
	
	
	
	
//	_EsdDynamicTransformationScript.esd1TagNum6ContentN.blur(function(){
//		_EsdDynamicTransformationScript.esd1TagNum6.mouseout();
//		$("a").mouseout();
//	});
	// 导航栏 ----------end
// ***************	网站上部/导航栏等公共部分 end	***************	//